// 表单提交
function myformsubmit() {
    //获得表单里面的数据
    var juryname = $("#juryname").val();
    var juryage = $("#juryage").val();
    var jurypassword = $("#jurypassword").val();
    var rejurypassword = $("#rejurypassword").val();
    var jurytel = $("#jurytel").val();

    console.log(juryname);
    console.log(juryage);
    console.log(jurypassword);
    console.log(jurytel);
    console.log(rejurypassword);

    if (juryname == "") {
        alert("名称不能为空");
        return;
    }
    if (juryage == "") {
        alert("年龄不能为空");
        return;
    }
    if (jurypassword == "") {
        alert("密码不能为空");
        return;
    }
    if (jurypassword != rejurypassword) {
        alert("两次输入的密码不一致");
        return;
    }
    if (jurytel == "") {
        alert("电话不能为空");
        return;
    }
    //表单可以提交了
    $("#form1").submit();
}